[Coding Rule]: Do not read from uninitialized union fields#302
[Coding Rule]: Do not read from uninitialized union fields#302rcseacord wants to merge 11 commits intorustfoundation:mainfrom
Conversation
✅ Deploy Preview for scrc-coding-guidelines ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@felix91gr the other one is for validity checks. this one is for reading uninitialized. |
workingjubilee
left a comment
There was a problem hiding this comment.
Noticed some sharp edges in the text.
src/coding-guidelines/types-and-traits/gui_6JSM7YE7a1KR.rst.inc
Outdated
Show resolved
Hide resolved
…alized bytes gui_UnionPartialInit Do not read from union fields that may contain uninitialized bytes
add new guideline
Clarify rules for accessing struct fields and typed reads.
Standardize IDs and bibliography entries, update example miri/warning handling, and add missing tag definitions for unions/initialization.
|
👋 Hey @Dillonmcewan! You've been assigned to review this coding guideline PR. Your Role as ReviewerAs outlined in our contribution guide, please:
Review Checklist
Bot CommandsIf you need to pass this review:
To assign someone else:
Other commands:
|
src/coding-guidelines/types-and-traits/gui_6JSM7YE7a1KR.rst.inc
Outdated
Show resolved
Hide resolved
Dillonmcewan
left a comment
There was a problem hiding this comment.
Generally looks great! Noticed one minor formatting issue and had one question about some non-compliant examples
src/coding-guidelines/types-and-traits/gui_6JSM7YE7a1KR.rst.inc
Outdated
Show resolved
Hide resolved
src/coding-guidelines/types-and-traits/gui_6JSM7YE7a1KR.rst.inc
Outdated
Show resolved
Hide resolved
|
Hey @Dillonmcewan, it's been more than 14 days since you were assigned to review this. Please take one of the following actions:
If no action is taken within 14 days, you may be transitioned from Producer to Observer status per our contribution guidelines. Life happens! If you're dealing with something, just let us know. |
Dillonmcewan
left a comment
There was a problem hiding this comment.
Didn't seem to register my last approval. Trying again
|
@PLeVasseur Is there something else I need to do to appease the bot? I approved the PR, but it still flagged me as having not reviewed |
Apologies @Dillonmcewan -- there's a bug / not well defined workflow here. Still working to resolve this. Will respond here once fixed. 🙃 |
|
@Dillonmcewan to keep you in the loop: an issue to fix this has been opened #388 :) |
|
@Dillonmcewan -- I hope I was able to get this fixed, see PR here: #391 Could you try to approve again to see if it'll take? |
…alized bytes
gui_UnionPartialInit
Do not read from union fields that may contain uninitialized bytes